package com.example.usercenter.service;

import com.example.usercenter.model.domain.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.usercenter.model.vo.UserVo;


import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
* @author asus
* @description 针对表【user(用户表)】的数据库操作Service
* @createDate 2024-12-21 16:20:42
*/
public interface UserService extends IService<User> {
    /**用户注册
     *
     * @return
     */
    long userRegister(String userAccount,String userPassword,String checkPassword,String planetCode);

    User userLogin(String userAccount, String userPassword, HttpServletRequest request);

    List<User> searchUsers(String userName);

    public List<User> searchUsesrByTags(List<String> tagNameList);

    public Integer updateUser(User user,HttpServletRequest request);
    boolean isAdmin(HttpServletRequest request);
    User getLoginUser(HttpServletRequest request);
    User saftUser(User one);

}
